import { atom } from 'recoil'
import zh_CN from 'antd/lib/locale/zh_CN';
import { persistAtom } from '../../config'

// 是否登录
export const loginAtom = atom({
  key: 'loginAtom',
  default: false,
  effects_UNSTABLE: [persistAtom],
})

// 用户信息
export const userInfoAtom = atom({
  key: 'userInfoAtom',
  default: {},
  effects_UNSTABLE: [persistAtom],
});

// 默认语言
export const langAtom = atom({
  key: 'langAtom',
  default: zh_CN,
  effects_UNSTABLE: [persistAtom],
})
